basic-cookies
Low-level RFC 6265 compatible cookie handling library for Rust.
Usage Example
use Cookie;
let parsed_cookies = parse.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Low-level RFC 6265 compatible cookie handling library for Rust.
use basic_cookies::Cookie;
let parsed_cookies = Cookie::parse("cookie1=value1; cookie2=value2").unwrap();
assert_eq!("cookie1", parsed_cookies[0].get_name());
assert_eq!("value1", parsed_cookies[0].get_value());
assert_eq!("cookie2", parsed_cookies[1].get_name());
assert_eq!("value2", parsed_cookies[1].get_value());